const express = require('express');
const app = express();
const port = 3000; // 您可以选择其他端口

// 中间件用于解析 JSON 请求体
app.use(express.json());

// 允许 CORS 跨域请求
const cors = require('cors');
app.use(cors());

// 模拟数据 (根据您的前端项目的数据结构创建)

// 分类数据 (已存在)
const categoryData = {
    "id": "1005000",
    "name": "居家",
    "picture": null,
    "children": [
        {
            "id": "1005999003",
            "name": "居家生活用品",
            "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-22/7f6a7b20-7902-4b43-b9c5-f33151ef1334.jpg",
            "parentId": null,
            "parentName": null,
            "goods": [
                {
                    "id": "3463003",
                    "name": "法国年份雅文邑700毫升",
                    "desc": "经典产区限量单一老年份",
                    "price": "1480.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/0a2fff6e0b55178fbbe99d97d94d20a8.png",
                    "discount": null,
                    "orderNum": 47
                },
                {
                    "id": "3494006",
                    "name": "梅乃宿梅酒720毫升",
                    "desc": "小藏手工酿造，百年名酒",
                    "price": "168.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/330913911087b44b0d817dd78233165f.png",
                    "discount": null,
                    "orderNum": 27
                },
                {
                    "id": "1503001",
                    "name": "全新升级，四川酸辣粉195克*6杯",
                    "desc": "秘制酱包，配料丰富，爽弹滑口更巴适",
                    "price": "69.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/54d1af8bc1e5e566b1455c8cbe3039aa.jpg",
                    "discount": null,
                    "orderNum": 1
                },
                {
                    "id": "3388018",
                    "name": "组合装牛油300克+清油110克*2+番茄110克*2",
                    "desc": "川渝火锅魂，地道重庆味",
                    "price": "32.80",
                    "picture": "https://yanxuan-item.nosdn.127.net/e0c1ffa060d1fd8b81a720212d684945.png",
                    "discount": null,
                    "orderNum": 4
                },
                {
                    "id": "1666009",
                    "name": "多米尼加陈年朗姆酒700毫升",
                    "desc": "陈年朗姆，香味芬芳",
                    "price": "238.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/e3f387109491d92c47179d029d340b1f.jpg",
                    "discount": null,
                    "orderNum": 18
                }
            ],
            "categories": null,
            "brands": null,
            "saleProperties": null
        },
        {
            "id": "1008017",
            "name": "收纳",
            "picture": "https://yanxuan.nosdn.127.net/366989e4d730594e86fcd60b5ab19acc.png",
            "parentId": null,
            "parentName": null,
            "goods": [
                {
                    "id": "1108008",
                    "name": "爆款明星好物，抽屉式透明储物柜",
                    "desc": "抽屉随意拉，东西随意拿，7款尺寸，随意叠加搭配",
                    "price": "129.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/76a5304c9d7378a83e63554f3077d98b.png",
                    "discount": null,
                    "orderNum": 30
                }
            ],
            "categories": null,
            "brands": null,
            "saleProperties": null
        },
        {
            "id": "1017000",
            "name": "宠物食品",
            "picture": "https://yanxuan.nosdn.127.net/b42a85ef15f856081ea9f49e5f6893e2.png",
            "parentId": null,
            "parentName": null,
            "goods": [],
            "categories": null,
            "brands": null,
            "saleProperties": null
        },
        {
            "id": "109243003",
            "name": "艺术藏品",
            "picture": "https://yanxuan.nosdn.127.net/9544b81aaa14c26a8038c2365ff3c2bc.png",
            "parentId": null,
            "parentName": null,
            "goods": [
                {
                    "id": "4008506",
                    "name": "平步青云财神家居摆件",
                    "desc": "艺术家瞿广慈作品，手绘上色，礼盒包装",
                    "price": "646.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/9d5d0083264344b5d85acde13570d025.jpg",
                    "discount": null,
                    "orderNum": 60
                },
                {
                    "id": "4001877",
                    "name": "朱炳仁·铜忠义千秋关公风水摆件",
                    "desc": "众今礼敬关二爷，祈愿慈恩常荫庇",
                    "price": "4280.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/cd9060820a1a52f296fa2502e56a5872.jpg",
                    "discount": null,
                    "orderNum": 19
                },
                {
                    "id": "3990698",
                    "name": "三重除臭，高效结团，混合猫砂2.5千克",
                    "desc": "科学配比，四效合一",
                    "price": "29.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/93b61911db2b55185aefd4b92bc52d26.png",
                    "discount": null,
                    "orderNum": 12
                },
                {
                    "id": "3986658",
                    "name": "快速吸水防回渗，宠物训导垫S码80片/袋",
                    "desc": "漏斗般吸水，一垫多用更省心",
                    "price": "35.80",
                    "picture": "https://yanxuan-item.nosdn.127.net/17f5a18b4125733023cad09d6b7852db.jpg",
                    "discount": null,
                    "orderNum": 59
                },
                {
                    "id": "4001920",
                    "name": "朱炳仁铜·猫型吉祥物装饰工艺摆件",
                    "desc": "灵性十足的黑色招财猫，周而复始，财源不断",
                    "price": "1888.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/6e38fc94a8fe72c9d139bc48ba6d9814.jpg",
                    "discount": null,
                    "orderNum": 16
                }
            ],
            "categories": null,
            "brands": null,
            "saleProperties": null
        },
        {
            "id": "109248004",
            "name": "宠物用品",
            "picture": "https://yanxuan.nosdn.127.net/e766b09029ca00680d1e651b5cdc42bd.png",
            "parentId": null,
            "parentName": null,
            "goods": [
                {
                    "id": "3990698",
                    "name": "三重除臭，高效结团，混合猫砂2.5千克",
                    "desc": "科学配比，四效合一",
                    "price": "29.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/93b61911db2b55185aefd4b92bc52d26.png",
                    "discount": null,
                    "orderNum": 12
                },
                {
                    "id": "3986658",
                    "name": "快速吸水防回渗，宠物训导垫S码80片/袋",
                    "desc": "漏斗般吸水，一垫多用更省心",
                    "price": "35.80",
                    "picture": "https://yanxuan-item.nosdn.127.net/17f5a18b4125733023cad09d6b7852db.jpg",
                    "discount": null,
                    "orderNum": 59
                },
                {
                    "id": "1435025",
                    "name": "还原猫咪排泄天性，进口膨润土砂6千克",
                    "desc": "进口矿砂，强力除臭凝结",
                    "price": "59.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/4c271a733bb1461d39162c0d807b1b02.png",
                    "discount": null,
                    "orderNum": 27
                }
            ],
            "categories": null,
            "brands": null,
            "saleProperties": null
        },
        {
            "id": "109293000",
            "name": "家庭医疗",
            "picture": "https://yanxuan.nosdn.127.net/3f34039fa8c26e18e2f4fc96ed8cb6de.png",
            "parentId": null,
            "parentName": null,
            "goods": [
                {
                    "id": "3997974",
                    "name": "入门首选，语音播报电子血压计",
                    "desc": "全程语音指导，一键测量，监测心率，贴心守护爸妈健康",
                    "price": "109.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
                    "discount": null,
                    "orderNum": 17
                },
                {
                    "id": "3997406",
                    "name": "支撑颈椎无负担，颈椎固定器",
                    "desc": "0.23KG轻量化设计，支撑颈椎，低头族救星",
                    "price": "299.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/0cdfd546f8675669b87716114ad5900a.jpg",
                    "discount": null,
                    "orderNum": 26
                },
                {
                    "id": "3995913",
                    "name": "家庭常备红外线耳温式体温计",
                    "desc": "耳温式体温计测量更准确",
                    "price": "139.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/cb09d868c280608a29c1d131dbc08061.jpg",
                    "discount": null,
                    "orderNum": 1
                },
                {
                    "id": "3987635",
                    "name": "语音播报，臂式测量血压计",
                    "desc": "臂式测量更准确，给爸妈的礼物",
                    "price": "219.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/a153def14233781de524ba184389855c.jpg",
                    "discount": null,
                    "orderNum": 2
                },
                {
                    "id": "3988985",
                    "name": "医用级缓鼻塞，可调式鼻腔清洗器",
                    "desc": "医用级洗鼻器，深度清洁疏通鼻腔",
                    "price": "39.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/3cfb2027c8644fe4a29d4809f6a3ad7e.png",
                    "discount": null,
                    "orderNum": 6
                }
            ],
            "categories": null,
            "brands": null,
            "saleProperties": null
        },
        {
            "id": "109308000",
            "name": "中医保健",
            "picture": "https://yanxuan.nosdn.127.net/2bfba997fd031317caecc4f0bad17569.png",
            "parentId": null,
            "parentName": null,
            "goods": [
                {
                    "id": "3992367",
                    "name": "七夕礼物·挺拔身姿，隐形内穿矫姿带",
                    "desc": "众筹爆品回归，专注矫姿20年，轻松矫正身姿",
                    "price": "149.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/7d1bc78607a08c088b2a7cdbe88c05af.png",
                    "discount": null,
                    "orderNum": 29
                },
                {
                    "id": "3993481",
                    "name": "带提手可站立炫彩硅胶热水袋",
                    "desc": "杯型式设计，轻松注水防烫伤",
                    "price": "35.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/0b120e1c37f312981f4f2242997cc862.png",
                    "discount": null,
                    "orderNum": 22
                },
                {
                    "id": "3986121",
                    "name": "艾灸理疗随时随地，灸疗装置8头/12头",
                    "desc": "哪里不适灸哪里，全身都可灸",
                    "price": "99.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/941abaee58a88cb104228fe2c4cfdeb1.png",
                    "discount": null,
                    "orderNum": 20
                },
                {
                    "id": "3987204",
                    "name": "真空拔罐器",
                    "desc": "居家养生必备超简便拔罐套装",
                    "price": "49.00",
                    "picture": "https://yanxuan-item.nosdn.127.net/16222847be7d090eb538a944a7e0b01b.jpg",
                    "discount": null,
                    "orderNum": 53
                }
            ],
            "categories": null,
            "brands": null,
            "saleProperties": null
        }
    ]
}

// 用户登录模拟数据
const userData = {
    "id": "1369594954739859458",
    "account": "xiaotuxian001",
    "mobile": "13219165182",
    "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ7XCJuYW1lXCI6XCLkvKDmmbrmlZnogrIrMVwiLFwiaWRcIjpcIjEzNjk1OTQ5NTQ3Mzk4NTk0NThcIixcInVzZXJuYW1lXCI6XCJ4aWFvdHV4aWFuMDAxXCJ9IiwiaWF0IjoxNjU1NDcxNTExLCJleHAiOjE2NTU3MzA3MTF9.pruHg2laVUHy84NHI8QFCkG2tzTbDy8ASAaHpm7iHxE",
    "avatar": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-06/db628d42-88a7-46e7-abb8-659448c33081.png",
    "nickname": "传智教育+1",
    "gender": "男",
    "birthday": "2021-11-11",
    "cityCode": "110100",
    "provinceCode": "110000",
    "profession": "国家机关、党群组织、企业、事业单位负责人"
};

// 首页 banner 模拟数据
const bannerData =  [
    {
        "id": "16",
        "imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/dfc11bb0-4af5-4e9b-9458-99f615cc685a.jpg",
        "hrefUrl": "/category/1005000",
        "type": "1"
    },
    {
        "id": "18",
        "imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/1ba86bcc-ae71-42a3-bc3e-37b662f7f07e.jpg",
        "hrefUrl": "/category/1013001",
        "type": "1"
    },
    {
        "id": "19",
        "imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/6d202d8e-bb47-4f92-9523-f32ab65754f4.jpg",
        "hrefUrl": "/category/1013001",
        "type": "1"
    },
    {
        "id": "20",
        "imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/e83efb1b-309c-46f7-98a3-f1fefa694338.jpg",
        "hrefUrl": "/category/1005000",
        "type": "1"
    },
    {
        "id": "17",
        "imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/4a79180a-1a5a-4042-8a77-4db0b9c800a8.jpg",
        "hrefUrl": "/category/1019000",
        "type": "1"
    }
]

// 首页新鲜好物模拟数据
const newData = [
    {
        "id": "4008506",
        "name": "平步青云财神家居摆件",
        "desc": "艺术家瞿广慈作品，手绘上色，礼盒包装",
        "price": "646.00",
        "picture": "https://yanxuan-item.nosdn.127.net/9d5d0083264344b5d85acde13570d025.jpg",
        "discount": null,
        "orderNum": 60
    },
    {
        "id": "3996270",
        "name": "超能装多功能出行胸包",
        "desc": "小身材，大容量，时尚出行",
        "price": "49.00",
        "picture": "https://yanxuan-item.nosdn.127.net/59b98ddea6422e71de8cec507865984f.png",
        "discount": null,
        "orderNum": 15
    },
    {
        "id": "4000464",
        "name": "趣玩奶酪纯PC拉链拉杆箱（14/20/24/26寸）",
        "desc": "萌趣外形，实用功能，开启愉快旅程",
        "price": "199.00",
        "picture": "https://yanxuan-item.nosdn.127.net/ee5ae3974a18a93f3f4704fe70075e10.png",
        "discount": null,
        "orderNum": 38
    },
    {
        "id": "3997974",
        "name": "入门首选，语音播报电子血压计",
        "desc": "全程语音指导，一键测量，监测心率，贴心守护爸妈健康",
        "price": "109.00",
        "picture": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
        "discount": null,
        "orderNum": 17
    }
]

// 首页人气推荐模拟数据
const hotData = [
    {
        "id": "1001",
        "picture": "https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/tuxian/popular_1.jpg",
        "title": "特惠推荐",
        "alt": "它们最实惠"
    },
    {
        "id": "1002",
        "picture": "https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/tuxian/popular_2.jpg",
        "title": "爆款推荐",
        "alt": "它们最受欢迎"
    },
    {
        "id": "1003",
        "picture": "https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/tuxian/popular_3.jpg",
        "title": "一站买全",
        "alt": "使用场景下精心优选"
    },
    {
        "id": "1004",
        "picture": "https://yjy-oss-files.oss-cn-zhangjiakou.aliyuncs.com/tuxian/popular_4.jpg",
        "title": "领券中心",
        "alt": "更多超值优惠券"
    }
]

// 首页categoryHeadData
const categoryHeadData = [
    {
        "id": "1005000",
        "name": "居家",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/201516e3-25d0-48f5-bcee-7f0cafb14176.png",
        "children": [
            {
                "id": "1005999003",
                "name": "居家生活用品",
                "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-22/7f6a7b20-7902-4b43-b9c5-f33151ef1334.jpg?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1008017",
                "name": "收纳",
                "picture": "https://yanxuan.nosdn.127.net/366989e4d730594e86fcd60b5ab19acc.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1017000",
                "name": "宠物食品",
                "picture": "https://yanxuan.nosdn.127.net/b42a85ef15f856081ea9f49e5f6893e2.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243003",
                "name": "艺术藏品",
                "picture": "https://yanxuan.nosdn.127.net/9544b81aaa14c26a8038c2365ff3c2bc.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109248004",
                "name": "宠物用品",
                "picture": "https://yanxuan.nosdn.127.net/e766b09029ca00680d1e651b5cdc42bd.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109293000",
                "name": "家庭医疗",
                "picture": "https://yanxuan.nosdn.127.net/3f34039fa8c26e18e2f4fc96ed8cb6de.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109308000",
                "name": "中医保健",
                "picture": "https://yanxuan.nosdn.127.net/2bfba997fd031317caecc4f0bad17569.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "3997602",
                "name": "暖腰暖腹暖胃，蕲艾暖宫腰带",
                "desc": "暖宫暖腰暖胃，大面积热敷≈3片暖宝宝",
                "price": "49.00",
                "picture": "https://yanxuan-item.nosdn.127.net/9892cc73945da1591fa5259ad076b23c.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3995284",
                "name": "新年佳礼，家用SPA多功能按摩床垫",
                "desc": "坐卧两用，随时随地做spa，多个场合随你心意",
                "price": "599.00",
                "picture": "https://yanxuan-item.nosdn.127.net/c41003c6df90d7673195dcc2482e13f3.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3993828",
                "name": "七夕礼物·姐姐同款，穿出自信体态矫姿带",
                "desc": "背薄一寸，年轻十岁，时尚百搭，约会职场小心机",
                "price": "159.00",
                "picture": "https://yanxuan-item.nosdn.127.net/a6939f41c48fa9e9c8f7a7ed855351f1.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3993481",
                "name": "带提手可站立炫彩硅胶热水袋",
                "desc": "杯型式设计，轻松注水防烫伤",
                "price": "35.00",
                "picture": "https://yanxuan-item.nosdn.127.net/0b120e1c37f312981f4f2242997cc862.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3992367",
                "name": "七夕礼物·挺拔身姿，隐形内穿矫姿带",
                "desc": "众筹爆品回归，专注矫姿20年，轻松矫正身姿",
                "price": "149.00",
                "picture": "https://yanxuan-item.nosdn.127.net/7d1bc78607a08c088b2a7cdbe88c05af.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3991840",
                "name": "消炎镇痛一贴灵医用冷敷贴60贴/盒",
                "desc": "mini型尺寸设计性价比更高",
                "price": "79.00",
                "picture": "https://yanxuan-item.nosdn.127.net/d3807695c7d42a0247e308a936201d7c.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3987204",
                "name": "真空拔罐器",
                "desc": "居家养生必备超简便拔罐套装",
                "price": "49.00",
                "picture": "https://yanxuan-item.nosdn.127.net/16222847be7d090eb538a944a7e0b01b.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3986121",
                "name": "艾灸理疗随时随地，灸疗装置8头/12头",
                "desc": "哪里不适灸哪里，全身都可灸",
                "price": "99.00",
                "picture": "https://yanxuan-item.nosdn.127.net/941abaee58a88cb104228fe2c4cfdeb1.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3997974",
                "name": "入门首选，语音播报电子血压计",
                "desc": "全程语音指导，一键测量，监测心率，贴心守护爸妈健康",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "1005002",
        "name": "美食",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/cf82e5b4-bf1b-4c68-aa86-96f66e8e5282.png",
        "children": [
            {
                "id": "1005012",
                "name": "南北干货",
                "picture": "https://yanxuan.nosdn.127.net/9af51a1090fd32f668b14451f06d6e72.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1036003",
                "name": "调味酱菜",
                "picture": "https://yanxuan.nosdn.127.net/5fae33a840870b487cc903535383bf97.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109201001",
                "name": "方便食品",
                "picture": "https://yanxuan.nosdn.127.net/f9872b4aad6c0a943d45629ac96ee8d3.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109206007",
                "name": "米面粮油",
                "picture": "https://yanxuan.nosdn.127.net/8578759aed2268f7aa8641273cac7cb3.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109264007",
                "name": "名酒馆",
                "picture": "https://yanxuan.nosdn.127.net/91413b1476a0697bb0592609a42d4498.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109285003",
                "name": "进口酒",
                "picture": "https://yanxuan.nosdn.127.net/bf705060f01b60fe9c11c345931b1891.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "1270008",
                "name": "黄金玉粟粥米500克",
                "desc": "谷物缤纷，香甜软糯",
                "price": "9.90",
                "picture": "https://yanxuan-item.nosdn.127.net/5f62c7ab543b1152383a0e9941c09bfd.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1269010",
                "name": "什锦素食粥米500克",
                "desc": "谷香米糯，营养美味",
                "price": "9.90",
                "picture": "https://yanxuan-item.nosdn.127.net/dc4826ddb838d8e17f90402adfa3f4fe.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1135081",
                "name": "紫米410克",
                "desc": "一年一熟的御田胭脂米",
                "price": "19.00",
                "picture": "https://yanxuan-item.nosdn.127.net/a3c0bb3be38ccf510ecaedb81f5bcd9f.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1135080",
                "name": "加量50%不加价，贵州兴仁薏仁米600克",
                "desc": "粒粒饱满，颗颗香糯",
                "price": "19.00",
                "picture": "https://yanxuan-item.nosdn.127.net/3e93790bba8db8aab54ee5ba72799567.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1135079",
                "name": "免浸泡，12种谷物一次同享，五谷米400克",
                "desc": "无需浸泡，同煮同熟",
                "price": "9.90",
                "picture": "https://yanxuan-item.nosdn.127.net/bfe70bd66efe94f2f18061c707d2a097.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1135077",
                "name": "加量45%不加价，内蒙古赤峰黄小米700克",
                "desc": "赤峰好谷，米香浓郁",
                "price": "19.00",
                "picture": "https://yanxuan-item.nosdn.127.net/564eb51c22d898179b468f5dec52d502.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1135076",
                "name": "红小豆450克*3袋",
                "desc": "皮薄易煮，粒粒香甜",
                "price": "19.00",
                "picture": "https://yanxuan-item.nosdn.127.net/eaec90be370a438e565e10189b7a390a.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1135075",
                "name": "来自东北的“黑珍珠”，黑米470克*3袋",
                "desc": "米汁香稠，Q弹醇香",
                "price": "19.00",
                "picture": "https://yanxuan-item.nosdn.127.net/1452cfeb14b5d252fb1ba97b278e9cc3.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3464033",
                "name": "冻干藤椒豚骨面74克*12盒",
                "desc": "日式风味，汤浓肉鲜，椒麻过瘾",
                "price": "79.00",
                "picture": "https://yanxuan-item.nosdn.127.net/7a5ffe313fe5671709d5a9826f5a83a2.jpg",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "1010000",
        "name": "服饰",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/33e1f5de-0fdb-4cfa-9ba9-781233024b53.png",
        "children": [
            {
                "id": "109303000",
                "name": "钱包/胸包",
                "picture": "https://yanxuan.nosdn.127.net/237613bc9c22eb422dade63e3ed7c61a.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109311005",
                "name": "女式靴子",
                "picture": "https://yanxuan.nosdn.127.net/62c5dacf3e0cbe8e4188ccd263358d1a.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109311006",
                "name": "女式休闲鞋",
                "picture": "https://yanxuan.nosdn.127.net/8cd3a76ffffb14e9fe92ad2369117af0.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109311007",
                "name": "女式运动鞋",
                "picture": "https://yanxuan.nosdn.127.net/7be561f2ddc2179a7e116c413636eba9.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109315000",
                "name": "11.11购物狂欢",
                "picture": "https://yanxuan.nosdn.127.net/b29297263032957553d7153b309db74b.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109318003",
                "name": "【年末狂欢季】",
                "picture": "https://yanxuan.nosdn.127.net/8f8092d5bf6a133a8cb59ab7b9f790e9.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "1621018",
                "name": "懒人瘦出好身材，多功能甩脂塑形机",
                "desc": "懒人福音居家轻松塑身",
                "price": "589.00",
                "picture": "https://yanxuan-item.nosdn.127.net/540f84174dbf9b98d4072abbd886819e.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1593000",
                "name": "软糯似baby肌肤，男式高领纯小山羊绒衫",
                "desc": "绒毛取自未满1岁的山羊羊羔",
                "price": "559.00",
                "picture": "https://yanxuan-item.nosdn.127.net/06156761337ba0fd1f8f51470f698b5f.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1555000",
                "name": "舒眠真丝眼罩",
                "desc": "顺滑真丝，感受舒适睡眠",
                "price": "79.00",
                "picture": "https://yanxuan-item.nosdn.127.net/85432452d5f40c4798c08f1f0beb4a43.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1436033",
                "name": "柔软透气，女式精梳棉内裤6条装",
                "desc": "爱慕供应商柔软透气",
                "price": "125.00",
                "picture": "https://yanxuan-item.nosdn.127.net/dc30e9603306e59d959e7fac6968244e.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1281002",
                "name": "轻灵碳素耐用型羽毛球拍单双拍",
                "desc": "超轻球拍，运动随心",
                "price": "119.00",
                "picture": "https://yanxuan-item.nosdn.127.net/89cc3ab3e332bb1df5dc20241b5ca4bb.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4001285",
                "name": "英伦长柄自动晴雨伞",
                "desc": "雨天有情调，英伦风设计，给你好品味",
                "price": "40.90",
                "picture": "https://yanxuan-item.nosdn.127.net/e77b8f4a8ddd1e777394d84347859f7c.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4001126",
                "name": "瑜伽裸感女式运动训练紧身裤",
                "desc": "面料韧性足，修身又舒适",
                "price": "83.90",
                "picture": "https://yanxuan-item.nosdn.127.net/872275c2e2edacc917e0364065c90121.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4000914",
                "name": "恍若没穿鞋，女式轻软舒弹健步鞋2.0",
                "desc": "宛若没穿鞋的轻盈，体验更自由的奔跑",
                "price": "159.00",
                "picture": "https://yanxuan-item.nosdn.127.net/feec7bde4d52521ae70ab4c5010ce992.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4000620",
                "name": "「一件三穿好过冬」男中长款鹅绒防水外套",
                "desc": "一件衣服三种穿法，应对多变天气",
                "price": "659.00",
                "picture": "https://yanxuan-item.nosdn.127.net/aa9e03278e3274a2a83f3f8e7df5ee6f.png",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "1011000",
        "name": "母婴",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/b514a526-4010-4ce8-8cb9-757ed382f84a.png",
        "children": [
            {
                "id": "1020003",
                "name": "T恤/polo/衬衫",
                "picture": "https://yanxuan.nosdn.127.net/1f0089afcec911db7202fbcdae57d5f8.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1037006",
                "name": "儿童鞋",
                "picture": "https://yanxuan.nosdn.127.net/7fd14a409302391da16970981cacd336.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243018",
                "name": "外套/套装",
                "picture": "https://yanxuan.nosdn.127.net/773a8777f66c286f97af6d74a27d7fe1.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243019",
                "name": "裤子/裙装",
                "picture": "https://yanxuan.nosdn.127.net/a8c52cea5f953019484a74883ad8f14b.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243021",
                "name": "连体衣/礼盒",
                "picture": "https://yanxuan.nosdn.127.net/773677cc0922628152a9b3cbd862426f.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243022",
                "name": "学步鞋",
                "picture": "https://yanxuan.nosdn.127.net/9a50280bb69e1c12f557f601cce1c480.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "4027473",
                "name": "新款LOGO印花时尚学步叫叫鞋",
                "desc": "软底包头叫叫鞋",
                "price": "259.00",
                "picture": "https://yanxuan-item.nosdn.127.net/841d7669e6cc23cb249f47d8d39fc17c.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4027466",
                "name": "儿童气泵软底学步二阶段学步鞋",
                "desc": "气泵大底学步鞋",
                "price": "239.00",
                "picture": "https://yanxuan-item.nosdn.127.net/19bedfd20a12842b5d7f7b909a62e877.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4023738",
                "name": "舒适软弹，糖果色儿童网孔透气运动鞋25-30",
                "desc": "防踢鞋头，透气网孔更舒适",
                "price": "139.00",
                "picture": "https://yanxuan-item.nosdn.127.net/c437179bc1d0d5ad77a79f15a5c6f166.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4023641",
                "name": "防踢鞋头，儿童学步健康机能鞋21-30",
                "desc": "包头防踢用心呵护",
                "price": "129.00",
                "picture": "https://yanxuan-item.nosdn.127.net/33ba674fbb13e2380ee8a74371eacf43.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4023638",
                "name": "抓绒保暖，毛毛虫儿童运动鞋26-30",
                "desc": "宝贝上脚活力出街",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/d917c92e663c5ed0bb577c7ded73e4ec.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4007784",
                "name": "婴幼儿童透气网面学步鞋小童鞋4-6码",
                "desc": "优质透气网布鞋面，轻盈自在",
                "price": "119.00",
                "picture": "https://yanxuan-item.nosdn.127.net/a9f428091f172db89977a511f6639fec.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3998535",
                "name": "学步更自如，婴幼童机能学步鞋4-6码",
                "desc": "宝宝的第一双鞋，成长不将就",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/ef01de6dfac9cc4c548f317f2feddafe.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3995013",
                "name": "时髦出街更亮眼，儿童休闲老爹鞋21-26码",
                "desc": "高弹鞋底，行走脚感舒适",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/088c9f9208b82fa4777336d22faa919d.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4023751",
                "name": "释放可爱天性，棉毛布造型领哈衣59-90cm",
                "desc": "A类婴幼儿标准，安全放心",
                "price": "62.00",
                "picture": "https://yanxuan-item.nosdn.127.net/5e2b5629af983dadbceed483dd677eeb.jpg",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "1013001",
        "name": "个护",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/d38a73b8-cd03-48aa-a60b-e7c4e16667ed.png",
        "children": [
            {
                "id": "1009000",
                "name": "家庭清洁",
                "picture": "https://yanxuan.nosdn.127.net/718318c0d3b55d011fcb7c7c843902ce.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1020002",
                "name": "浴室用品",
                "picture": "https://yanxuan.nosdn.127.net/dfb6142de1bd2f59b251eb8f7c7ea2fb.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243016",
                "name": "餐厨清洁",
                "picture": "https://yanxuan.nosdn.127.net/55d927e337c1f6d394359e99ef72a621.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109256012",
                "name": "纸品",
                "picture": "https://yanxuan.nosdn.127.net/07fef43b0d14882d6662233ab30dc588.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109256013",
                "name": "干湿巾",
                "picture": "https://yanxuan.nosdn.127.net/985897ea31fdfc159e12696f4dbb4c13.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109261055",
                "name": "毛巾浴巾",
                "picture": "https://yanxuan.nosdn.127.net/949c5f8b077cf386ff9f1f18bec3408b.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "3987992",
                "name": "【新疆棉】简约山形纹全棉提花毛巾",
                "desc": "新疆长绒棉毛巾，吸水好颜值高",
                "price": "18.50",
                "picture": "https://yanxuan-item.nosdn.127.net/e0cea368f41da1587b3b7fc523f169d7.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3436033",
                "name": "1件装【新疆棉】云珍·轻软旅行长绒棉方巾",
                "desc": "轻巧无捻小方巾，旅行便携",
                "price": "7.90",
                "picture": "https://yanxuan-item.nosdn.127.net/99c83709ca5f9fd5c5bb35d207ad7822.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1436010",
                "name": "囤货装云珍·轻软旅行长绒棉毛巾6条装",
                "desc": "触碰云软，热销50万条",
                "price": "139.00",
                "picture": "https://yanxuan-item.nosdn.127.net/f4ed2e5d7b268bb270bce9ce63122ec0.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1129016",
                "name": "【新疆棉】快速擦干，阿瓦提长绒棉毛巾",
                "desc": "瞬间吸水，亲肤近0掉毛率",
                "price": "16.90",
                "picture": "https://yanxuan-item.nosdn.127.net/2f4ff18d601494cb7805ee099ed8a50f.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1021000",
                "name": "厚厚一按就干爽，埃及进口长绒棉毛巾",
                "desc": "厚实大毛圈，干爽瞬吸",
                "price": "16.90",
                "picture": "https://yanxuan-item.nosdn.127.net/a5c5398a7c033edb8a052fe1fddf8a81.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1009026",
                "name": "【新疆棉】云珍·轻软长绒棉浴巾",
                "desc": "云朵般轻软，至柔至软",
                "price": "129.00",
                "picture": "https://yanxuan-item.nosdn.127.net/957d7a338fc0de044965cc279fce68b2.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1006051",
                "name": "【新疆棉】云珍·轻软旅行长绒棉毛巾",
                "desc": "轻软亲肤，热销50万条",
                "price": "31.90",
                "picture": "https://yanxuan-item.nosdn.127.net/2a16452169f9d2e8841ddef76fdd684a.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1006029",
                "name": "【新疆棉】宝宝也能用，全棉华夫格毛巾",
                "desc": "空气华夫格，自然新疆棉",
                "price": "15.90",
                "picture": "https://yanxuan-item.nosdn.127.net/3480e3fa68b810f23afb43f6bf2fe45b.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3465081",
                "name": "清洁养护一片搞定皮革护理湿巾",
                "desc": "一擦如新懒人必备",
                "price": "9.90",
                "picture": "https://yanxuan-item.nosdn.127.net/bc32744cdf844b5136d3d84b0e6ba9d4.jpg",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "1019000",
        "name": "严选",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/4b02f01f-a365-4b6c-9f7a-8b0f591dda02.png",
        "children": [
            {
                "id": "1065004",
                "name": "滋补保健",
                "picture": "https://yanxuan.nosdn.127.net/1e619a2b22f40bf83070e6f8f6e0c8ff.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109256014",
                "name": "床品家纺",
                "picture": "https://yanxuan.nosdn.127.net/e6580910c1f98ed61bda867aeaf07929.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109256015",
                "name": "锅具配件",
                "picture": "https://yanxuan.nosdn.127.net/50ccbf04857e86cccf44d25da0577deb.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109275000",
                "name": "清洁用品",
                "picture": "https://yanxuan.nosdn.127.net/926d919bc3e95f5c93dc5dc973faa378.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109309012",
                "name": "个护电器",
                "picture": "https://yanxuan.nosdn.127.net/7a0eea3c515ad247c092749bcdd29855.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "4000009",
                "name": "医美级冰脱韩国Ulike蓝宝石脉冲光脱毛仪",
                "desc": "蓝宝石冰点脱毛，高效更持久",
                "price": "1599.00",
                "picture": "https://yanxuan-item.nosdn.127.net/3567b2ac2526e6b89124f3fb62fd09d3.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4027998",
                "name": "亮碟多效合一洗涤块495g",
                "desc": "洗碗机专用，强力去污",
                "price": "69.90",
                "picture": "https://yanxuan-item.nosdn.127.net/e07c2b63765cf9f4a46d489c6e09c1c1.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4017718",
                "name": "油污克星Mootaa重油污清洁剂",
                "desc": "一喷快速溶解油污",
                "price": "26.90",
                "picture": "https://yanxuan-item.nosdn.127.net/53a1579ead54c61a9b296d20c78a67ff.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4010699",
                "name": "除味净化神器Mootaa冰箱抑菌清洁剂250ml",
                "desc": "除臭杀毒，持久保鲜，解决冰箱各种食材串味产生的难闻气味",
                "price": "35.00",
                "picture": "https://yanxuan-item.nosdn.127.net/838c1b94f15e3b200bea21cef8989592.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3999485",
                "name": "意大利大公鸡管家重油污克星清洁剂625ml",
                "desc": "强效去污，操作便捷",
                "price": "39.00",
                "picture": "https://yanxuan-item.nosdn.127.net/6a669deef604cd8f080991b3207a3078.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3998109",
                "name": "强力去垢不伤锅天然棕榈清洁刷长/短款",
                "desc": "短柄针对顽渍，长柄清洁死角",
                "price": "8.00",
                "picture": "https://yanxuan-item.nosdn.127.net/7537da93f26f0303d94c59f3889836ed.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3990408",
                "name": "1滴强力去污澳洲超浓缩不伤手洗洁精400ml",
                "desc": "温和高效去污，一瓶可作多用",
                "price": "17.90",
                "picture": "https://yanxuan-item.nosdn.127.net/9ffdc0b1f6dbbe2e9f10a187444c01a3.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3990343",
                "name": "【囤货装】日本橙油精华去油污泡沫3瓶装",
                "desc": "强力除油污，萃取橙油精华",
                "price": "67.50",
                "picture": "https://yanxuan-item.nosdn.127.net/188e05584a056b0e2f17e8c568da8c00.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4023839",
                "name": "日本冰块冰球制冰模具",
                "desc": "轻轻一拍，轻松取冰",
                "price": "29.80",
                "picture": "https://yanxuan-item.nosdn.127.net/2be38fc160992fe41f7d4a45bd0f90e5.png",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "1043000",
        "name": "数码",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/9660870d-6a59-4624-8064-b3a8cbf50d5c.png",
        "children": [
            {
                "id": "1008006",
                "name": "影音娱乐",
                "picture": "https://yanxuan.nosdn.127.net/f5797ca77cfe413e7753ec69f9bd4bb1.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1022000",
                "name": "3C数码",
                "picture": "https://yanxuan.nosdn.127.net/99b8f97b2e5449606fd558574aa15982.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "1028001",
                "name": "乐器",
                "picture": "https://yanxuan.nosdn.127.net/da0ac345e98c04594b697b56ebc373a5.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243035",
                "name": "手机配件",
                "picture": "https://yanxuan.nosdn.127.net/0276d68f4b7a03bbd16675ada6e707ff.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243036",
                "name": "车载用品",
                "picture": "https://yanxuan.nosdn.127.net/3f45fbcdac7e8532b6a1570e6d7fe171.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109243046",
                "name": "办公文具",
                "picture": "https://yanxuan.nosdn.127.net/801583d2f58274b13dc6a03daed1c3c9.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "3529022",
                "name": "书源彩色按动中性笔",
                "desc": "化繁为简，书写本源",
                "price": "13.90",
                "picture": "https://yanxuan-item.nosdn.127.net/21216556e7d47a4e4277dcb36a16a486.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3506005",
                "name": "意外设计小时光便携钢笔",
                "desc": "精致与优雅随身藏\n4.16-4.19号停止发货",
                "price": "328.00",
                "picture": "https://yanxuan-item.nosdn.127.net/f3636b063dad944aa527e4652392a553.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3499024",
                "name": "创意金属立体拼酷模型",
                "desc": "凤舞龙翔呈现华丽视觉",
                "price": "158.00",
                "picture": "https://yanxuan-item.nosdn.127.net/f3784ed01706f2f2722f12410a6429c9.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3468024",
                "name": "意外设计便携钢笔花信礼盒",
                "desc": "生活的美，诗人的心\n4.16-4.19号停止发货",
                "price": "398.00",
                "picture": "https://yanxuan-item.nosdn.127.net/cc1c57b701f202bc585d8fff3b65571e.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1512000",
                "name": "用心记录每一句诗，飞鸟集钢笔本册文具礼盒",
                "desc": "谱写情谊之歌",
                "price": "89.00",
                "picture": "https://yanxuan-item.nosdn.127.net/3892e311f3494d2bcc2c1f8ed9e34271.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1458011",
                "name": "谱写爱的篇章，莫扎特钢笔墨水礼盒",
                "desc": "谱写爱的乐章",
                "price": "88.00",
                "picture": "https://yanxuan-item.nosdn.127.net/b20165617d2f901e9ad926f39b737e87.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1111002",
                "name": "剪出精致感，金致圆柄复古剪刀",
                "desc": "轻薄设计，简约大方",
                "price": "9.90",
                "picture": "https://yanxuan-item.nosdn.127.net/4c6a9c8a579b00e5e9c7b002d15a33a2.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3994432",
                "name": "平台严选x敦煌博物馆鹿游仙踪植萃车载香氛",
                "desc": "复古敦煌色系，植萃天然香氛，安全健康孕婴可用",
                "price": "33.90",
                "picture": "https://yanxuan-item.nosdn.127.net/15db90ea8c8c7456c1fee4e18abb25da.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3992720",
                "name": "旅途手机好伴侣，三合一车载手机支架",
                "desc": "带安全锤和应急割刀的手机支架",
                "price": "49.00",
                "picture": "https://yanxuan-item.nosdn.127.net/2245a3d6898361236babb66d834e19c8.jpg",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "109243029",
        "name": "运动",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/7d19752c-baff-49b6-bd02-5ece1d729214.png",
        "children": [
            {
                "id": "109312000",
                "name": "健身大器械",
                "picture": "https://yanxuan.nosdn.127.net/6a1d37ffb2e28622a71e3c4415eaee35.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109312001",
                "name": "健身小器械",
                "picture": "https://yanxuan.nosdn.127.net/8c9f060e6fddb2b75af851a9a2c60087.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109312002",
                "name": "城市出行",
                "picture": "https://yanxuan.nosdn.127.net/b41b50710c3823f44a9f5b549a67ca81.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109312003",
                "name": "运动护具",
                "picture": "https://yanxuan.nosdn.127.net/ef9bcb99d88b3a1cfd9d2e120c158c21.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109313000",
                "name": "垂钓",
                "picture": "https://yanxuan.nosdn.127.net/c4eeeae307d0562cf3e95303146282b2.png?quality=95&imageView",
                "children": null,
                "goods": null
            },
            {
                "id": "109313003",
                "name": "户外装备",
                "picture": "https://yanxuan.nosdn.127.net/6bbd92c68741c857d842f0afd1c7bdd5.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "3996603",
                "name": "飞宇出游拍摄防抖神器手机稳定器",
                "desc": "小巧便携，三轴防抖，模式随心选",
                "price": "439.00",
                "picture": "https://yanxuan-item.nosdn.127.net/2d0a47a51fa4b3e3857f2010bd83bead.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3995454",
                "name": "黑科技专利款100%防水保暖针织毛线帽",
                "desc": "黑科技专利，做到真正的保暖防水",
                "price": "135.00",
                "picture": "https://yanxuan-item.nosdn.127.net/3683d874b9623434a10b4ab0c2e6be9f.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3994572",
                "name": "伊海诗冬日出行多功能防风保暖围脖",
                "desc": "时尚针织印花面料，多种穿戴方式，正反两穿，亲肤保暖",
                "price": "35.00",
                "picture": "https://yanxuan-item.nosdn.127.net/25effebb31ea6fc58b92f5a6aecda8b9.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3994179",
                "name": "运动健身跑步腰包",
                "desc": "防水反光设计，大容量双口袋收纳，运动跑步更时尚",
                "price": "40.00",
                "picture": "https://yanxuan-item.nosdn.127.net/610a693cfd6f01adc6923dc1c0ec91aa.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3993694",
                "name": "可触屏户外出行手套-合集",
                "desc": "户外轻松骑行",
                "price": "69.00",
                "picture": "https://yanxuan-item.nosdn.127.net/264df9f0faddb60e88a8b108058d25e6.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3988016",
                "name": "户外快干轻巧遮阳帽",
                "desc": "有效遮阳，可折叠收纳",
                "price": "44.00",
                "picture": "https://yanxuan-item.nosdn.127.net/310eac832a1d90fbea41c4e6a9e604e4.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3987478",
                "name": "可折叠户外防紫外线鸭舌帽",
                "desc": "可折叠，透气网纱棒球帽",
                "price": "44.00",
                "picture": "https://yanxuan-item.nosdn.127.net/87fbba3cf009e5b69dd14781c594ef79.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "3550194",
                "name": "防晒快干长檐棒球帽",
                "desc": "遮阳防晒,保暖新潮",
                "price": "69.00",
                "picture": "https://yanxuan-item.nosdn.127.net/7d0b373a6a63882783202c836bae264d.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "4026116",
                "name": "探险者黑胶防晒防雨遮阳伞户外钓鱼伞",
                "desc": "防雨遮阳隔绝紫外线",
                "price": "169.00",
                "picture": "https://yanxuan-item.nosdn.127.net/66090c5de391e43e4516601e14870842.jpg",
                "discount": null,
                "orderNum": null
            }
        ]
    },
    {
        "id": "19999999",
        "name": "杂项",
        "picture": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-05-06/4ff20b9e-8150-4bd3-87a3-0cd6766938dd.png",
        "children": [
            {
                "id": "19999999001",
                "name": "家庭清洁杂项",
                "picture": "https://yanxuan.nosdn.127.net/718318c0d3b55d011fcb7c7c843902ce.png?quality=95&imageView",
                "children": null,
                "goods": null
            }
        ],
        "goods": [
            {
                "id": "1589017",
                "name": "分场景使用不污染，超细纤维抹布分类5件套",
                "desc": "精细分工，洁净家居",
                "price": "14.90",
                "picture": "https://yanxuan-item.nosdn.127.net/c520bba8209bae877158e8810d889aca.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1548001",
                "name": "添加茂金属更强韧，金属色垃圾袋",
                "desc": "3卷90只，茂金属添加，柔韧加倍",
                "price": "8.90",
                "picture": "https://yanxuan-item.nosdn.127.net/251393c0d8db7b0b594ccf86f1e796d0.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1540017",
                "name": "随用随丢，懒人真爱地板清洁/除菌湿巾",
                "desc": "材质加厚，耐磨珍珠纹",
                "price": "8.90",
                "picture": "https://yanxuan-item.nosdn.127.net/4c8a1cf2b8e40c250870491307dde11f.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1525018",
                "name": "灰尘毛发静电吸附地板除尘干巾40片/包",
                "desc": "干湿两用，静电除尘",
                "price": "7.90",
                "picture": "https://yanxuan-item.nosdn.127.net/cf7584e037706a8df54fecfc6dfdd2af.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1306019",
                "name": "日式和风简约无盖垃圾桶11L",
                "desc": "敞口设计易洗易干触手可得的洁净与精致",
                "price": "9.90",
                "picture": "https://yanxuan-item.nosdn.127.net/ca7144b1f5fda5528dd8e4c40abc3bcc.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1306017",
                "name": "大容量干湿分类，脚踏缓降静音垃圾桶",
                "desc": "一踩开合，解放双手",
                "price": "89.00",
                "picture": "https://yanxuan-item.nosdn.127.net/1b322ed8c25f94f1fbf39ddb5fedeb47.jpg",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1085007",
                "name": "一抽即提，免脏手，加厚抽绳垃圾袋3卷60只",
                "desc": "18μm及10μm两种厚度，袋身不怕漏，3秒抽绳不脏手",
                "price": "9.50",
                "picture": "https://yanxuan-item.nosdn.127.net/72af0b7c1d7b0b9710de621788326d2b.png",
                "discount": null,
                "orderNum": null
            },
            {
                "id": "1076004",
                "name": "软糯治愈系擦手，雪尼尔擦手球",
                "desc": "吸水快干，不易掉屑",
                "price": "9.50",
                "picture": "https://yanxuan-item.nosdn.127.net/43d99e9b97cc55033b0f59b95a91ae49.png",
                "discount": null,
                "orderNum": null
            }
        ]
    }
]


// 首页商品模块模拟数据
const goodsData = [
    {
        id: 'goods_cat1',
        name: '分类1',
        goods: [
            { id: 'g1', name: '商品A', picture: 'g_url_a', desc: '商品A描述', price: '10' },
            { id: 'g2', name: '商品B', picture: 'g_url_b', desc: '商品B描述', price: '20' }
        ]
    },
     {
        id: 'goods_cat2',
        name: '分类2',
        goods: [
            { id: 'g3', name: '商品C', picture: 'g_url_c', desc: '商品C描述', price: '30' },
            { id: 'g4', name: '商品D', picture: 'g_url_d', desc: '商品D描述', price: '40' }
        ]
    }
];

// 详情页相关推荐模拟数据
const relevantGoodsData ={
        "id": "3995846",
        "name": "加绒加厚，儿童保暖时尚卫衣套装73-120cm",
        "spuCode": "3995846",
        "desc": "舒棉绒内里，抵御寒冬",
        "price": "199.00",
        "oldPrice": "199.00",
        "discount": 1,
        "inventory": 4320424,
        "brand": {
            "id": "spider99999999999",
            "name": "传智自有品牌",
            "nameEn": "chuanzhi",
            "logo": "https://yanxuan-item.nosdn.127.net/f6ddd429632de6170900dc2fbc541fd8.png?type=webp&imageView&thumbnail=78x78&quality=95",
            "picture": "https://yanxuan-item.nosdn.127.net/f6ddd429632de6170900dc2fbc541fd8.png?type=webp&imageView&thumbnail=78x78&quality=95",
            "type": null,
            "desc": null,
            "place": null
        },
        "salesCount": 135,
        "commentCount": 1,
        "collectCount": 0,
        "mainVideos": [],
        "videoScale": 1,
        "mainPictures": [
            "https://yanxuan-item.nosdn.127.net/21d2e9b754487aa3030ce105493a9473.jpg",
            "https://yanxuan-item.nosdn.127.net/adb0345dc57c2589671f41de805d2105.jpg",
            "https://yanxuan-item.nosdn.127.net/2bbc81469792c1a72bc59701f7888505.jpg",
            "https://yanxuan-item.nosdn.127.net/3bb9962fca4e86c7cc4ac3734a33440a.jpg",
            "https://yanxuan-item.nosdn.127.net/95de6f4e4bb7e10689c4abf21c6414bc.jpg"
        ],
        "specs": [
            {
                "name": "花型",
                "id": "1482373509680332802",
                "values": [
                    {
                        "name": "花与熊",
                        "picture": "https://yanxuan-item.nosdn.127.net/ec3b277074be06a76cfea97fb6f0becc.png",
                        "desc": "外套/套装-销售属性花型-花与熊-规格属性图片"
                    },
                    {
                        "name": "知更鸟",
                        "picture": "https://yanxuan-item.nosdn.127.net/048db169d4788241872a663a10b24637.png",
                        "desc": "外套/套装-销售属性花型-知更鸟-规格属性图片"
                    },
                    {
                        "name": "五角星",
                        "picture": "https://yanxuan-item.nosdn.127.net/06e57bd24ce8bd9c7a464ccaa39591f0.png",
                        "desc": "外套/套装-销售属性花型-五角星-规格属性图片"
                    },
                    {
                        "name": "北极熊",
                        "picture": "https://yanxuan-item.nosdn.127.net/bb6f75f9d1d55f0932f7185a7841589d.png",
                        "desc": "外套/套装-销售属性花型-北极熊-规格属性图片"
                    },
                    {
                        "name": "老虎",
                        "picture": "https://yanxuan-item.nosdn.127.net/bab958a8d5941f61079ab78ec2d3e770.png",
                        "desc": "外套/套装-销售属性花型-老虎-规格属性图片"
                    },
                    {
                        "name": "灰灰与憨憨",
                        "picture": "https://yanxuan-item.nosdn.127.net/cb8d274e79a0936f17553e689d7626b0.png",
                        "desc": "外套/套装-销售属性花型-灰灰与憨憨-规格属性图片"
                    },
                    {
                        "name": "斑马纹",
                        "picture": "https://yanxuan-item.nosdn.127.net/915bd94cf43cf3acc99956724726fcf6.png",
                        "desc": "外套/套装-销售属性花型-斑马纹-规格属性图片"
                    },
                    {
                        "name": "梦幻小猫",
                        "picture": "https://yanxuan-item.nosdn.127.net/64da86bdeb12a0e46d0c871a0088eb1b.png",
                        "desc": "外套/套装-销售属性花型-梦幻小猫-规格属性图片"
                    }
                ]
            },
            {
                "name": "尺码",
                "id": "1482373425295130625",
                "values": [
                    {
                        "name": "90cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-90cm-规格属性图片"
                    },
                    {
                        "name": "80cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-80cm-规格属性图片"
                    },
                    {
                        "name": "110cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-110cm-规格属性图片"
                    },
                    {
                        "name": "100cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-100cm-规格属性图片"
                    },
                    {
                        "name": "120cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-120cm-规格属性图片"
                    },
                    {
                        "name": "73cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-73cm-规格属性图片"
                    },
                    {
                        "name": "130cm",
                        "picture": null,
                        "desc": "外套/套装-销售属性尺码-130cm-规格属性图片"
                    }
                ]
            }
        ],
        "skus": [
            {
                "id": "300248014",
                "skuCode": "300248014",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 1568,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248015",
                "skuCode": "300248015",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 2372,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248016",
                "skuCode": "300248016",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4912,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248017",
                "skuCode": "300248017",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4898,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248018",
                "skuCode": "300248018",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3776,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248019",
                "skuCode": "300248019",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 85,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248020",
                "skuCode": "300248020",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 9144,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "斑马纹"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248021",
                "skuCode": "300248021",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 7689,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248022",
                "skuCode": "300248022",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 6145,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248023",
                "skuCode": "300248023",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 1361,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248024",
                "skuCode": "300248024",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 1640,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248025",
                "skuCode": "300248025",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4436,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248026",
                "skuCode": "300248026",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 752,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248027",
                "skuCode": "300248027",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 6235,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "梦幻小猫"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248028",
                "skuCode": "300248028",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 8126,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248029",
                "skuCode": "300248029",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4453,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248030",
                "skuCode": "300248030",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3218,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248031",
                "skuCode": "300248031",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3005,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248032",
                "skuCode": "300248032",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3765,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248033",
                "skuCode": "300248033",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4527,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248034",
                "skuCode": "300248034",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 5348,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "知更鸟"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248035",
                "skuCode": "300248035",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 5689,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248036",
                "skuCode": "300248036",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 9291,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248037",
                "skuCode": "300248037",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 7665,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248038",
                "skuCode": "300248038",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3973,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248039",
                "skuCode": "300248039",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 177,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248040",
                "skuCode": "300248040",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 996,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248041",
                "skuCode": "300248041",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 2513,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "花与熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248042",
                "skuCode": "300248042",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 8061,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248043",
                "skuCode": "300248043",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 8885,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248044",
                "skuCode": "300248044",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 8411,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248045",
                "skuCode": "300248045",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 1325,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248046",
                "skuCode": "300248046",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3671,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248047",
                "skuCode": "300248047",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 6861,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248048",
                "skuCode": "300248048",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 998,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "五角星"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248049",
                "skuCode": "300248049",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 9453,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248050",
                "skuCode": "300248050",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 1374,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248051",
                "skuCode": "300248051",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 2858,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248052",
                "skuCode": "300248052",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 5024,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248053",
                "skuCode": "300248053",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 2026,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248054",
                "skuCode": "300248054",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 8154,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248055",
                "skuCode": "300248055",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4650,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "北极熊"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248056",
                "skuCode": "300248056",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 2990,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248057",
                "skuCode": "300248057",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 7258,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248058",
                "skuCode": "300248058",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4567,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248059",
                "skuCode": "300248059",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 9174,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248060",
                "skuCode": "300248060",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 2849,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248061",
                "skuCode": "300248061",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 7578,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248062",
                "skuCode": "300248062",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4542,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "老虎"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            },
            {
                "id": "300248063",
                "skuCode": "300248063",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 5798,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73cm"
                    }
                ]
            },
            {
                "id": "300248064",
                "skuCode": "300248064",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 4667,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80cm"
                    }
                ]
            },
            {
                "id": "300248065",
                "skuCode": "300248065",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 3227,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90cm"
                    }
                ]
            },
            {
                "id": "300248066",
                "skuCode": "300248066",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 5725,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100cm"
                    }
                ]
            },
            {
                "id": "300248067",
                "skuCode": "300248067",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 8157,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110cm"
                    }
                ]
            },
            {
                "id": "300248068",
                "skuCode": "300248068",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 6863,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120cm"
                    }
                ]
            },
            {
                "id": "300248069",
                "skuCode": "300248069",
                "price": "199.00",
                "oldPrice": "199.00",
                "inventory": 7115,
                "specs": [
                    {
                        "name": "花型",
                        "valueName": "灰灰与憨憨"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130cm"
                    }
                ]
            }
        ],
        "categories": [
            {
                "id": "109243018",
                "name": "外套/套装",
                "layer": 2,
                "parent": {
                    "id": "1011000",
                    "name": "母婴",
                    "layer": 1,
                    "parent": null
                }
            },
            {
                "id": "1011000",
                "name": "母婴",
                "layer": 1,
                "parent": null
            }
        ],
        "details": {
            "pictures": [
                "https://yanxuan-item.nosdn.127.net/d7a0988846e600029eb4be9820bbb123.jpg"
            ],
            "properties": [
                {
                    "name": "品牌",
                    "value": "网易严选推荐选品，本产品为马克珍妮（marc&janie）品牌，由杭州紫音服饰有限公司生产"
                },
                {
                    "name": "适用年龄",
                    "value": "6-9岁、3-6岁、1-3岁"
                },
                {
                    "name": "适用季节",
                    "value": "冬季、秋季"
                },
                {
                    "name": "童装品类",
                    "value": "套装"
                }
            ]
        },
        "isPreSale": false,
        "isCollect": null,
        "recommends": null,
        "userAddresses": null,
        "similarProducts": [
            {
                "id": "3995195",
                "name": "毛茸茸暖意，儿童羊羔绒外套73-120cm",
                "desc": "宽松版型，搭出休闲风格",
                "price": "99.00",
                "picture": "https://yanxuan-item.nosdn.127.net/1661541f80bc9776e64125b7d586c9e6.jpg",
                "discount": null,
                "orderNum": 1
            },
            {
                "id": "3995846",
                "name": "加绒加厚，儿童保暖时尚卫衣套装73-120cm",
                "desc": "舒棉绒内里，抵御寒冬",
                "price": "199.00",
                "picture": "https://yanxuan-item.nosdn.127.net/21d2e9b754487aa3030ce105493a9473.jpg",
                "discount": null,
                "orderNum": 66
            },
            {
                "id": "3994471",
                "name": "甜酷运动风，儿童卫衣运动套装73-130cm",
                "desc": "轻松搭配，一套活力尽显",
                "price": "179.00",
                "picture": "https://yanxuan-item.nosdn.127.net/767fc11b88b1e7b795319cd78c65f72f.png",
                "discount": null,
                "orderNum": 65
            },
            {
                "id": "3994908",
                "name": "90%白鸭绒，儿童棒球领轻薄羽绒服73-140cm",
                "desc": "儿童棒球轻羽绒外套，保暖常备单品",
                "price": "159.00",
                "picture": "https://yanxuan-item.nosdn.127.net/6d8d6772df51fa60c2e899a16ac34718.png",
                "discount": null,
                "orderNum": 40
            }
        ],
        "hotByDay": [
            {
                "id": "3997974",
                "name": "入门首选，语音播报电子血压计",
                "desc": "全程语音指导，一键测量，监测心率，贴心守护爸妈健康",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
                "discount": null,
                "orderNum": 22
            },
            {
                "id": "3996270",
                "name": "超能装多功能出行胸包",
                "desc": "小身材，大容量，时尚出行",
                "price": "49.00",
                "picture": "https://yanxuan-item.nosdn.127.net/59b98ddea6422e71de8cec507865984f.png",
                "discount": null,
                "orderNum": 20
            },
            {
                "id": "3994432",
                "name": "平台严选x敦煌博物馆鹿游仙踪植萃车载香氛",
                "desc": "复古敦煌色系，植萃天然香氛，安全健康孕婴可用",
                "price": "33.90",
                "picture": "https://yanxuan-item.nosdn.127.net/15db90ea8c8c7456c1fee4e18abb25da.png",
                "discount": null,
                "orderNum": 34
            },
            {
                "id": "4000277",
                "name": "21春季新品，宝宝舒适四季连体衣0-3岁",
                "desc": "拥抱新生，A类婴幼儿标准，安全放心",
                "price": "79.00",
                "picture": "https://yanxuan-item.nosdn.127.net/6efe85e63ab1e09896e1c99a9fe09d9e.png",
                "discount": null,
                "orderNum": 28
            }
        ],
        "evaluationInfo": {
            "id": "1480429705176813570",
            "orderInfo": null,
            "member": null,
            "score": 5,
            "tags": null,
            "content": "系统默认好评",
            "pictures": null,
            "officialReply": null,
            "praiseCount": 662,
            "createTime": "2022-01-10 14:42:01",
            "praisePercent": 1
        }
    }


// 二级分类筛选模拟数据
const categoryFilterData = {
    brands: [{id: 'brand1', name: '品牌1'}],
    saleProperties: [{id: 'prop1', name: '属性1', properties: [{id: 'prop1_val1', name: '值1'}]}]
};

// 分类商品临时模拟数据
const temporaryGoodsData = {
    items: [
        { id: 'temp_g1', name: '临时商品1', picture: 'temp_url_1', price: '60' },
        { id: 'temp_g2', name: '临时商品2', picture: 'temp_url_2', price: '70' }
    ],
    counts: 100
};

// 商品详情模拟数据 (需要根据实际商品ID返回不同数据)
const goodsDetailData = (id) => {
    return {
        id: id,
        name: `商品详情 ${id}`,
        mainPictures: [`detail_url_${id}_1`, `detail_url_${id}_2`],
        price: '100',
        oldPrice: '120',
        desc: `这是商品 ${id} 的详细描述。`,
        // ...其他商品详情字段
    };
};

// 热销商品模拟数据
const hotGoodsData = [
    { id: 'hot_g1', name: '热销商品A', picture: 'hot_g_url_a', price: '50' },
    { id: 'hot_g2', name: '热销商品B', picture: 'hot_g_url_b', price: '60' }
];

// 购物车模拟数据 (一个简单的数组)
let cartData = [];

// 结算页预检查模拟数据
const checkoutInfoData = {
    userAddresses: [
        { id: 'addr1', receiverName: '收货人1', contact: '1234567890', fullLocation: '地址1' }
    ],
    goods: [
        { id: 'cart_g1', name: '购物车商品1', picture: 'cart_url_1', price: '100', count: 1, skuId: 'sku1' }
    ],
    summary: { totalMoney: '100', totalCount: 1 }
};

// 订单模拟数据 (一个简单的数组)
let orderData = [];

// 基本路由
app.get('/', (req, res) => {
  res.send('Hello from Express backend!');
});

// 处理分类数据的路由 (已存在)
app.get('/category', (req, res) => {
  res.json({
    code: '1',
    msg: '操作成功',
    result: categoryData
  });
});

// 用户登录路由
app.post('/login', (req, res) => {
    const { account, password } = req.body;
    // 简单的模拟登录逻辑
    if (account === 'heima292' && password === 'hm#qd@23!') {
        res.json({
            code: '1',
            msg: '操作成功',
            result: userData
        });
    } else {
        res.status(401).json({
            code: '0',
            msg: '用户名或密码错误'
        });
    }
});

// 获取相关商品路由
app.get('/goods', (req, res) => {
    res.json({
        code: '1',
        msg: '操作成功',
        result: relevantGoodsData
    });
});

// 获取 banner 路由
app.get('/home/banner', (req, res) => {
    res.json({
        code: '1',
        msg: '成功',
        result: bannerData
    });
});

// 获取新鲜好物路由
app.get('/home/new', (req, res) => {
    res.json({
        code: '1',
        msg: '成功',
        result: newData
    });
});

// 获取人气推荐路由
app.get('/home/hot', (req, res) => {
    res.json({
        code: '1',
        msg: '成功',
        result: hotData
    });
});

// 获取所有商品模块路由
app.get('/home/goods', (req, res) => {
    res.json({
        code: '1',
        msg: '成功',
        result: goodsData
    });
});

app.get('/home/category/head',(req, res) => {
    res.json({
        code: '1',
        msg: '成功',
        result: categoryHeadData
    });
})

// 获取一级分类详情路由
app.get('/category', (req, res) => {
    const categoryId = req.query.id;
    // 根据 categoryId 返回对应的分类数据，这里简化处理返回所有数据
    res.json({
        code: '1',
        msg: '成功',
        result: categoryData.find(cat => cat.id === categoryId) || null
    });
});

// 获取二级分类筛选数据路由
app.get('/category/sub/filter', (req, res) => {
    const categoryId = req.query.id;
     // 根据 categoryId 返回对应的筛选数据，这里简化处理返回模拟数据
    res.json({
        code: '1',
        msg: '成功',
        result: categoryFilterData
    });
});

// 获取分类商品临时数据路由
app.post('/category/goods/temporary', (req, res) => {
    const params = req.body;
     // 根据参数 params 返回对应的商品数据，这里简化处理返回模拟数据
    res.json({
        code: '1',
        msg: '成功',
        result: temporaryGoodsData
    });
});

// 获取商品详情路由
app.get('/goods', (req, res) => {
    const goodsId = req.query.id;
    res.json({
        code: '1',
        msg: '成功',
        result: goodsDetailData(goodsId)
    });
});

// 获取热销商品路由
app.get('/goods/hot', (req, res) => {
     const { id, type, limit } = req.query;
     // 根据 id, type, limit 返回热销商品，这里简化处理返回模拟数据
    res.json({
        code: '1',
        msg: '成功',
        result: hotGoodsData
    });
});

// 购物车 - 添加商品
app.post('/member/cart', (req, res) => {
    const { skuId, count } = req.body;
    // 简单的购物车添加逻辑
    cartData.push({ id: skuId, skuId, count });
    res.json({
        code: '1',
        msg: '添加购物车成功'
    });
});

// 购物车 - 获取列表
app.get('/member/cart', (req, res) => {
    res.json({
        code: '1',
        msg: '获取购物车成功',
        result: cartData
    });
});

// 购物车 - 删除商品
app.delete('/member/cart', (req, res) => {
    const { ids } = req.body;
    // 简单的购物车删除逻辑
    cartData = cartData.filter(item => !ids.includes(item.skuId));
    res.json({
        code: '1',
        msg: '删除购物车成功',
        result: false
    });
});

// 购物车 - 合并购物车
app.post('/member/cart/merge', (req, res) => {
    const data = req.body;
    // 简单的合并购物车逻辑
    // 这里可以根据 data 中的商品信息更新 cartData
    res.json({
        code: '1',
        msg: '合并购物车成功'
    });
});

// 结算页预检查
app.get('/member/order/pre', (req, res) => {
    res.json({
        code: '1',
        msg: '获取结算页信息成功',
        result: checkoutInfoData
    });
});

// 创建订单
app.post('/member/order', (req, res) => {
    const orderInfo = req.body;
    // 简单的创建订单逻辑
    const newOrder = { id: Date.now().toString(), ...orderInfo };
    orderData.push(newOrder);
    res.json({
        code: '1',
        msg: '创建订单成功',
        result: { id: newOrder.id } // 返回订单ID
    });
});

// 获取订单列表
app.get('/member/order', (req, res) => {
    const params = req.query;
     // 根据 params (orderState, page, pageSize) 过滤订单，这里简化返回所有订单
    res.json({
        code: '1',
        msg: '获取订单列表成功',
        result: { items: orderData, counts: orderData.length }
    });
});

// 获取订单详情
app.get('/member/order/:id', (req, res) => {
    const orderId = req.params.id;
     // 根据 orderId 查找并返回订单详情
    const order = orderData.find(order => order.id === orderId);
    if (order) {
        res.json({
            code: '1',
            msg: '获取订单详情成功',
            result: order
        });
    } else {
        res.status(404).json({
            code: '0',
            msg: '订单未找到'
        });
    }
});

app.listen(port, () => {
  console.log(`Backend server listening at http://localhost:${port}`);
}); 